/*我的收藏*/
Ext.define('qjtravel.view.Collection', {
    extend: 'Ext.Panel',
    xtype: 'collection',
    requires:[
        'Ext.data.Store',
        "Ext.dataview.List"
    ],

    config:{
        layout:'card',
        items:
            [
                {
                    xtype:'titlebar',
                    docked:'top',
                    title:'我的收藏',
                    items:{
                        xtype:'button',
                        text:'返回',
                        handler:function(){
                            Ext.Viewport.remove(this.up('collection'),true);
                        }
                    }
                },
                {
                    xtype:'list',
                    selectedCls:false,
                    scrollable: true,
                    emptyText:'您还没有收藏商品或者活动！',
                    store:'Collect',
                    itemTpl:'{name}',

                    listeners: {
                        initialize: function () {
                            var Collect = Ext.getStore('Collect');
                        }
                    }
                }
            ],listeners: {
            back:function() {
                Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true);
            }
        }
    }
});

